home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))
-
-
-
- NNNNAAAAMMMMEEEE
- XrmGetFileDatabase, XrmPutFileDatabase,
- XrmGetStringDatabase, XrmLocaleOfDatabase, XrmGetDatabase,
- XrmSetDatabase, XrmDestroyDatabase - retrieve and store
- resource databases
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- XrmDatabase XrmGetFileDatabase(_f_i_l_e_n_a_m_e)
- char *_f_i_l_e_n_a_m_e;
-
- void XrmPutFileDatabase(_d_a_t_a_b_a_s_e, _s_t_o_r_e_d__d_b)
- XrmDatabase _d_a_t_a_b_a_s_e;
- char *_s_t_o_r_e_d__d_b;
-
- XrmDatabase XrmGetStringDatabase(_d_a_t_a)
- char *_d_a_t_a;
-
- char *XrmLocaleOfDatabase(_d_a_t_a_b_a_s_e)
- XrmDatabase _d_a_t_a_b_a_s_e;
-
- XrmDatabase XrmGetDatabase(_d_i_s_p_l_a_y)
- Display *_d_i_s_p_l_a_y;
-
- void XrmSetDatabase(_d_i_s_p_l_a_y, _d_a_t_a_b_a_s_e)
- Display *_d_i_s_p_l_a_y;
- XrmDatabase _d_a_t_a_b_a_s_e;
-
- void XrmDestroyDatabase(_d_a_t_a_b_a_s_e)
- XrmDatabase _d_a_t_a_b_a_s_e;
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _f_i_l_e_n_a_m_e Specifies the resource database file name.
-
- _d_a_t_a_b_a_s_e Specifies the database that is to be used.
-
- _s_t_o_r_e_d__d_b Specifies the file name for the stored database.
-
- _d_a_t_a Specifies the database contents using a string.
-
- _d_a_t_a_b_a_s_e Specifies the resource database.
-
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _X_r_m_G_e_t_F_i_l_e_D_a_t_a_b_a_s_e function opens the specified file,
- creates a new resource database, and loads it with the
- specifications read in from the specified file. The
- specified file should contain a sequence of entries in valid
- ResourceLine format (see section 15.1); the database that
- results from reading a file with incorrect syntax is
- implementation-dependent. The file is parsed in the current
- locale, and the database is created in the current locale.
-
-
-
- Page 1 (printed 4/30/98)
-
-
-
-
-
-
- XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))
-
-
-
- If it cannot open the specified file, _X_r_m_G_e_t_F_i_l_e_D_a_t_a_b_a_s_e
- returns NULL.
-
- The _X_r_m_P_u_t_F_i_l_e_D_a_t_a_b_a_s_e function stores a copy of the
- specified database in the specified file. Text is written
- to the file as a sequence of entries in valid ResourceLine
- format (see section 15.1). The file is written in the
- locale of the database. Entries containing resource names
- that are not in the Host Portable Character Encoding or
- containing values that are not in the encoding of the
- database locale, are written in an implementation-dependent
- manner. The order in which entries are written is
- implementation-dependent. Entries with representation types
- other than ``String'' are ignored.
-
- The _X_r_m_G_e_t_S_t_r_i_n_g_D_a_t_a_b_a_s_e function creates a new database and
- stores the resources specified in the specified null-
- terminated string. _X_r_m_G_e_t_S_t_r_i_n_g_D_a_t_a_b_a_s_e is similar to
- _X_r_m_G_e_t_F_i_l_e_D_a_t_a_b_a_s_e except that it reads the information out
- of a string instead of out of a file. The string should
- contain a sequence of entries in valid ResourceLine format
- (see section 15.1) terminated by a null character; the
- database that results from using a string with incorrect
- syntax is implementation-dependent. The string is parsed in
- the current locale, and the database is created in the
- current locale.
-
- If database is NULL, _X_r_m_D_e_s_t_r_o_y_D_a_t_a_b_a_s_e returns immediately.
-
- The _X_r_m_L_o_c_a_l_e_O_f_D_a_t_a_b_a_s_e function returns the name of the
- locale bound to the specified database, as a null-terminated
- string. The returned locale name string is owned by Xlib
- and should not be modified or freed by the client. Xlib is
- not permitted to free the string until the database is
- destroyed. Until the string is freed, it will not be
- modified by Xlib.
-
- The _X_r_m_G_e_t_D_a_t_a_b_a_s_e function returns the database associated
- with the specified display. It returns NULL if a database
- has not yet been set.
-
- The _X_r_m_S_e_t_D_a_t_a_b_a_s_e function associates the specified
- resource database (or NULL) with the specified display. The
- database previously associated with the display (if any) is
- not destroyed. A client or toolkit may find this function
- convenient for retaining a database once it is constructed.
-
- FFFFIIIILLLLEEEE SSSSYYYYNNNNTTTTAAAAXXXX
- The syntax of a resource file is a sequence of resource
- lines terminated by newline characters or the end of the
- file. The syntax of an individual resource line is:
-
-
-
-
- Page 2 (printed 4/30/98)
-
-
-
-
-
-
- XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))
-
-
-
- ResourceLine = Comment | IncludeFile | ResourceSpec | <empty line>
- Comment = "!" {<any character except null or newline>}
- IncludeFile = "#" WhiteSpace "include" WhiteSpace FileName WhiteSpace
- FileName = <valid filename for operating system>
- ResourceSpec = WhiteSpace ResourceName WhiteSpace ":" WhiteSpace Value
- ResourceName = [Binding] {Component Binding} ComponentName
- Binding = "." | "*"
- WhiteSpace = {<space> | <horizontal tab>}
- Component = "?" | ComponentName
- ComponentName = NameChar {NameChar}
- NameChar = "a"-"z" | "A"-"Z" | "0"-"9" | "_" | "-"
- Value = {<any character except null or unescaped newline>}
-
- Elements separated by vertical bar (|) are alternatives.
- Curly braces ({...}) indicate zero or more repetitions of
- the enclosed elements. Square brackets ([...]) indicate
- that the enclosed element is optional. Quotes ("...") are
- used around literal characters.
-
- IncludeFile lines are interpreted by replacing the line with
- the contents of the specified file. The word ``include''
- must be in lowercase. The file name is interpreted relative
- to the directory of the file in which the line occurs (for
- example, if the file name contains no directory or contains
- a relative directory specification).
-
- If a ResourceName contains a contiguous sequence of two or
- more Binding characters, the sequence will be replaced with
- single ``.'' character if the sequence contains only ``.''
- characters; otherwise, the sequence will be replaced with a
- single ``*'' character.
-
- A resource database never contains more than one entry for a
- given ResourceName. If a resource file contains multiple
- lines with the same ResourceName, the last line in the file
- is used.
-
- Any white space characters before or after the name or colon
- in a ResourceSpec are ignored. To allow a Value to begin
- with white space, the two-character sequence ``\_s_p_a_c_e''
- (backslash followed by space) is recognized and replaced by
- a space character, and the two-character sequence ``\_t_a_b''
- (backslash followed by horizontal tab) is recognized and
- replaced by a horizontal tab character. To allow a Value to
- contain embedded newline characters, the two-character
- sequence ``\n'' is recognized and replaced by a newline
- character. To allow a Value to be broken across multiple
- lines in a text file, the two-character sequence
- ``\_n_e_w_l_i_n_e'' (backslash followed by newline) is recognized
- and removed from the value. To allow a Value to contain
- arbitrary character codes, the four-character sequence
- ``\_n_n_n'', where each _n is a digit character in the range of
-
-
-
- Page 3 (printed 4/30/98)
-
-
-
-
-
-
- XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXrrrrmmmmGGGGeeeettttFFFFiiiilllleeeeDDDDaaaattttaaaabbbbaaaasssseeee((((3333XXXX11111111))))
-
-
-
- ``0''-``7'', is recognized and replaced with a single byte
- that contains the octal value specified by the sequence.
- Finally, the two-character sequence ``\\'' is recognized and
- replaced with a single backslash.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- XrmGetResource(3X11), XrmInitialize(3X11),
- XrmPutResource(3X11)
- _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 4/30/98)
-
-
-
-